import type { RouteRecordRaw } from 'vue-router'

const userRouter: RouteRecordRaw = {
  path: '/user',
  component: () => import('@/layout/Index.vue'),
  children: [
    {
      path: 'index',
      component: () => import('@/views/user/IndexView.vue'),
      meta: {
        title: '首页',
        level: 2
      }
    },
    {
      path: 'messageList',
      component: () => import('@/views/user/MessageListView.vue'),
      meta: {
        title: '用户信息列表',
        level: 2
      }
    },
  ],
  meta: {
    title: '用户管理',
    icon: 'user-manager',
    level: 1,
    hasChild: true
  }
}

export default userRouter